# Maintainer: LoveSy <shana@zju.edu.cn>

pkgname=icmake
pkgver=9.02.08
pkgrel=1
pkgdesc='A program maintenance (make) utility using a C-like grammar'
arch=('i686' 'x86_64')
url='https://fbb-git.gitlab.io/icmake/'
license=('GPL3')
source=("${pkgname}::git+https://gitlab.com/fbb-git/icmake.git#tag=${pkgver}")
sha256sums=('SKIP')

build() {
  cd "${srcdir}/${pkgname}/${pkgname}"

  ./icm_prepare /
  ./icm_bootstrap /
}

package() {
  cd "${srcdir}/${pkgname}/${pkgname}"

  ./icm_install all "${pkgdir}"
}
